<?php

if($_GET['task']=='runtest'){
	include("runtest.php");
	exit;
}
$smarty->template_dir = 'components/mainpage/templates/';
$smarty->compile_dir = 'components/mainpage/templates_c/';
require("mainpage_functions.php");

$faculties = getFaculties();
if(!isset($_SESSION['fselected']))$_SESSION['fselected']=0;
//$_SESSION['fselected']=0;
$categories = getCategories();
//print_r($categories);

$smarty->assign("faculties",$faculties);
$smarty->assign("categories",$categories);
$smarty->assign("component","home");
$smarty->display("index.tpl");
?>
